<template>
    <view style="padding: 10px 20px;">
        <view style="margin-bottom: 20upx;" >
            <u-button @click="handlePublish" type="primary">去认证</u-button>
        </view>
        <view v-if="topCompanyBasicList.length" style="margin-bottom:20upx">
            <mainList :baseList="topCompanyBasicList" url="/pages/invest/enter"/>
        </view>
        <view v-else>
            <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/car.png">
            </u-empty>
           
            
        </view>
    </view>
</template>

<script>
import mainList from '@/components/mainList/index.vue'
import uTabs from '@/components/uTabs/index.vue'
export default {
    components: {
        mainList,
        uTabs
    },
    data() {
        return {
            tabBasicList: [
                {
                    name: '独角兽企业研究'
                },
                {
                    name: '企业赛道一'
                },
                {
                    name: '企业赛道二'
                }
            ],
            topCompanyBasicList: [],
        }
    },
    
    onShow() {
        this.getList()
    },
    methods: {
        async getList() {
            const res = await this.$api.getUserShenQing({})
            this.topCompanyBasicList = res.map((item) => {
                return{
                    ...item,
                    name:item.qiye_name,
                    desc_text:item.user_name,
                    tag:item.user_phone,
                    msg:item.area_id || '北京'
                }
            })
        },
        handlePublish() {
            uni.navigateTo({
                url: '/pages/invest/enter'
            })
        }
    }
}
</script>

<style></style>